﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RelationshipTransferView.aspx.cs" Inherits="ZHDJ.PersonalCenter.Module.RelationshipTransfer.RelationshipTransferView" %>

<%@ Register Src="RelationshipTransferHistory.ascx" TagName="ucHistory" TagPrefix="ZHDJ" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link href="../../../../Resource/themes/default/css/party.common.css" rel="stylesheet"
        type="text/css" />
    <link href="../../../../Resource/themes/default/css/party.portal.css" rel="stylesheet"
        type="text/css" />
    <link href="../../../../Resource/themes/default/css/portal.widgets.css" rel="stylesheet"
        type="text/css" />
    <script src="../../../../Resource/js/jquery/jquery.min.js"></script>
    <script>
        function UrlRefresh(url) {
            window.parent.location.href = url;
        }

        function Tprint() {
            $("#linktoW").click();
            //$("#header").hide();
            //$("#divHistory").hide();
            //$("#tableRecode").hide();
            //window.print();

        }
    </script>
    <style type="text/css">
        .title {
            text-align: center;
            font-size: 16px;
            font-weight: 700;
            height: 40px;
            line-height: 40px;
        }

        .txt {
            padding-bottom: 1px;
            border-bottom: 1px ridge #fff; /* 下划线效果 */
            border-top: 0px;
            border-left: 0px;
            border-right: 0px;
            background-color: transparent; /* 背景色透明 */
            color: #1B163F;
            display: inline-block;
            height: 20px;
            line-height: 30px;
        }

        ul {
            margin: 5px auto;
        }

            ul li {
                list-style: none;
                text-align: center;
            }

        .spanLine {
            text-decoration: underline;
        }

        tr {
            padding: 0px 5px;
        }

        .btnPrint {
            width: 72px;
            height: 24px;
            background: url(../../../../Resource/themes/default/images/Buttons/button-print.gif) no-repeat;
            border: none;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <a href="TWord.aspx" target="_blank" runat="server" id="aWord"><span id="linktoW"></span></a>
        <div style="margin: 0 10px">
            <div id="divConent" style="" runat="server">
                <div class="title" id="header">组织关系转移审批</div>
                <table width="100%" cellspacing="1" cellpadding="0" border="0" class="formTable">
                    <tr>
                        <td style="width: 80px">
                            <ul>
                                <li>党</li>
                                <li>员</li>
                                <li>介</li>
                                <li>绍</li>
                                <li>信</li>
                                <li>存</li>
                                <li>根</li>
                            </ul>
                        </td>
                        <td valign="top">
                            <div style="text-align: right; margin-top: 5px; padding: 0px 5px">
                                <span class="txt" style="width: 120px; text-align: left;">第________号</span>
                            </div>
                            <div style="margin-top: 5px; padding: 0px 5px">
                                &nbsp;&nbsp;&nbsp;&nbsp;<span class="txt" style="font-weight: 700; width: 60px;"><%=OrgMemberModel.UserName%></span>同志是中共<span
                                    class="txt" style="width: 40px; text-align: center; font-weight: 700;"><%=GetPoliticsLineamentName(OrgMemberModel.PoliticsLineament) %></span>党员，组织关系由<span
                                        class="txt" style="width: 150px; text-align: center; font-weight: 700;"><%= GetBranchName(TransferModel.FormerBranchID)%></span>转到<span
                                            class="txt" style="width: 150px; text-align: center; font-weight: 700;"><%= GetBranchName(TransferModel.TageBranchID)%></span>。
                            </div>
                            <div style="text-align: right; margin-top: 5px; padding: 0px 5px">
                                <span class="txt" style="width: 120px; text-align: left;"><%=TransferModel.CreateTime.ToString("yyyy年MM月dd日")%></span>
                            </div>
                        </td>
                    </tr>
                </table>
                <div style="height: 10px">
                </div>
                <table width="100%" cellspacing="1" cellpadding="0" border="0" class="formTable">
                    <tr>
                        <td>
                            <table width="100%" cellspacing="0" cellpadding="0" border="0">
                                <tr>
                                    <td height="30" align="center">
                                        <span style="font-size: 16px; font-weight: bold;">中国共产党党员组织关系介绍信</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="30" align="right" style="padding: 0px 5px"><span class="txt" style="width: 120px; text-align: left;">第<%=TransferModel.SerialNumber%>号</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="30" style="padding: 0px 5px">
                                        <span class="txt" style="width: 250px;">
                                            <%= GetBranchName(TransferModel.TageBranchID)%>：</span>:
                                    </td>
                                </tr>
                                <tr>
                                    <td height="30" style="padding: 0px 5px">&nbsp;&nbsp;&nbsp;&nbsp;<span class="txt" style="width: 60px; text-align: left; font-weight: 700;"><%=OrgMemberModel.UserName%></span>同志(<%=OrgMemberModel.Gender=="0"?"男":"女"%>)，
                                <span class="txt" style="width: 40px; text-align: center; font-weight: 700;"><%=TransferModel.Age%></span>岁， <span class="txt" style="width: 40px; text-align: center; font-weight: 700;">
                                    <%=OrgMemberModel.Nation%></span>族，系中共<span class="txt" style="width: 50px; text-align: center; font-weight: 700;"><%=GetPoliticsLineamentName(OrgMemberModel.PoliticsLineament) %></span>党员，身份证号<span
                                        class="txt" style="width: 160px; text-align: center; font-weight: 700;"><%=OrgMemberModel.IdentityCard%></span>，由<span
                                            class="txt" style="width: 200px; text-align: center; font-weight: 700;"><%= GetBranchName(TransferModel.FormerBranchID)%></span>去<span
                                                class="txt" style="width: 200px; text-align: center; font-weight: 700;"><%= GetBranchName(TransferModel.TageBranchID)%></span>，请转接组织关系。该同志党费已交到<span
                                                    class="txt" style="width: 50px; text-align: center;"><%=GetMemberCost(0)%></span>年<span class="txt" style="width: 30px; text-align: center; font-weight: 700;"><%=GetMemberCost(1)%></span>月。
                                    </td>
                                </tr>
                                <tr>
                                    <td height="30" align="right" style="padding: 0px 5px"><span class="txt" style="width: 105px; text-align: left;">（盖章）</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="30" align="right" style="padding: 0px 5px"><span class="txt" style="width: 120px; text-align: left;"><%=TransferModel.CreateTime.ToString("yyyy年MM月dd日")%></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="30" style="padding: 0px 5px">党员联系电话或其他联系方式：<span class="txt" style="width: 500px; text-align: left"><%=OrgMemberModel.MobileNo%></span><br />
                                        党员原所在基层党委通讯地址：<span class="txt" style="width: 500px; text-align: left"><%=TransferModel.FromBranchAddress%></span><br />
                                        <br />
                                        <br />
                                        联系电话：<span class="txt" style="width: 160px; text-align: left"><%=TransferModel.FromBranchMobileNo%></span>
                                        &nbsp; &nbsp; 传真：<span class="txt" style="width: 160px; text-align: left"><%=TransferModel.FromBranchFax%></span>
                                        &nbsp; &nbsp;邮编：<span class="txt" style="width: 160px; text-align: left"><%=TransferModel.FromBranchZip%></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="height: 5px"></td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                <div style="height: 10px">
                </div>
                <table width="100%" cellspacing="1" cellpadding="0" border="0" class="formTable" runat="server" id="tableHuizhi">
                    <tr>
                        <td>
                            <table width="100%" cellspacing="0" cellpadding="0" border="0">
                                <tr>
                                    <td height="30" align="center" style="padding: 0px 5px">
                                        <span style="font-size: 16px; font-weight: bold;">中国共产党党员组织关系介绍信回执联</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="30" align="right" style="padding: 0px 5px"><span class="txt" style="width: 120px; text-align: left;">第<%=TransferModel.SerialNumber%>号</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="30" style="padding: 0px 5px">
                                        <span class="txt" style="width: 250px;">
                                            <%= ZHDJ.WebPage.ControlBusiness.GetBranchPickerText(TransferModel.FormerBranchID)%>：</span>:
                                    </td>
                                </tr>
                                <tr>
                                    <td height="30" style="padding: 0px 5px">&nbsp;&nbsp;&nbsp;&nbsp;<span class="txt" style="width: 60px; text-align: left; font-weight: 700;"><%=OrgMemberModel.UserName%></span>
                                        同志的党员组织关系已转达我处，特此回复。                                  
                                    </td>
                                </tr>
                                <tr>
                                    <td height="30" align="right" style="padding: 0px 5px"><span class="txt" style="width: 105px; text-align: left;">（盖章）</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="30" align="right" style="padding: 0px 5px"><span class="txt" style="width: 120px; text-align: left;">
                                        <asp:Literal runat="server" ID="ltDoneTime"></asp:Literal></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="30" style="padding: 0 5px;">经办人：<span class="txt" style="width: 160px;"><asp:Literal runat="server" ID="ltDoneBy"></asp:Literal></span>
                                        &nbsp; &nbsp; 联系电话：
                                    <span class="txt" style="width: 160px;">
                                        <asp:Literal runat="server" ID="ltDoneByMobileNo"></asp:Literal></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="height: 30px; padding: 0 5px;">注：回执联由接收党员组织关系的基层党委在接收党员一个月内邮递或传真至党员原所在基层党委。
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                <div style="text-align: center">
                    <asp:Button ID="btnPrint" runat="server" CssClass="btnPrint" OnClientClick="Tprint();return ;" />
                </div>
                <div style="height: 10px">
                </div>
                <table width="100%" cellspacing="1" cellpadding="0" border="0" class="formTable" id="tableRecode">
                    <tbody>
                        <tr>
                            <td height="30" align="center" colspan="6">
                                <span style="font-size: 16px; font-weight: bold;">审批记录</span>
                            </td>
                        </tr>
                        <%foreach (System.Data.DataRow dr in ProcessInfo.Rows)
                        { %>

                    <%
                        if (dr["ApprovalResult"].ToString() == "提交申请")
                        {
                    %>
                    <tr>
                        <td class="fle">申请人：
                        </td>
                        <td class="Right">
                            <%=dr["UserName"] %>
                        </td>
                        <td class="fle">状态：
                        </td>
                        <td class="Right">
                            <%=dr["ApprovalResult"]%>
                        </td>
                    </tr>
                    <tr>
                        <td class="fle">日期：
                        </td>
                        <td class="Right">
                            <%=dr["CreateTime"]%>
                        </td>
                        <td class="fle">意见：
                        </td>
                        <td class="Right">
                            <%=dr["Explain"]%>
                        </td>
                    </tr>
                    <tr>
                        <td height="30" align="center" colspan="4"></td>
                    </tr>
                    <% }
                        else
                        {%>
                    <tr>
                        <td class="fle">审批人：
                        </td>
                        <td class="Right">
                            <%=dr["UserName"] %>
                        </td>
                        <td class="fle">审批状态：
                        </td>
                        <td class="Right">
                            <%=dr["ApprovalResult"]%>
                        </td>
                    </tr>
                    <tr>
                        <td class="fle">日期：
                        </td>
                        <td class="Right">
                            <%=dr["CreateTime"]%>
                        </td>
                        <td class="fle">审批意见：
                        </td>
                        <td class="Right">
                            <%=dr["Explain"]%>
                        </td>
                    </tr>
                    <tr>
                        <td height="30" align="center" colspan="4"></td>
                    </tr>
                    <%
                        }
                    %>

                    <%} %>
                    </tbody>
                </table>
                 <div style="height: 10px">
                </div>
                <div id="divHistory">
                    <ZHDJ:ucHistory runat="server" ID="ucHistory1" Visible="false" />
                </div>
                 <div style="height: 10px">
            </div>
        </div>
    </form>
</body>
</html>
